<?php
namespace Orders\Service;
use Orders\Entity\PushOrderBodyEntity;
use Orders\Entity\PushOrderHeaderEntity;
use Orders\Entity\PushOrderPublicEntity;
use Orders\Repository\OrderRepository;
use Orders\Utils;

class PushOrderService
{
//    protected $orderRepository; // 用于存储注入的数据仓库实例
//
//    public function __construct(OrderRepository $orderRepository)
//    {
//        $this->orderRepository = $orderRepository; // 注入数据仓库实例
//    }


    public function push(PushOrderPublicEntity $public, PushOrderHeaderEntity $header, $bodyData)
	{
		// 设置请求公共信息
		$pulicData = $public->getAllAttributes();

		// 设置请求头部信息
        $headerData = $header->getAllAttributes();

       
		// 推送数据
		return Utils::curlRequest('',$pulicData, $headerData, $bodyData);
	}


}